﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CCEmployment
/// </summary>
/// 
namespace CE.CreditCard
{
    public class CCEmployment
    {
        private Int64 _ccempid;
        private Int64 _ccpersonnelid;
        private Int64 _ccarid;
        private string _ccoccupation;
        private string _ccindbustype;
        private string _ccempbusname;
        private string _ccempbusnature;
        private string _ccposition;
        private Int16 _ccserviceyears;
        private Int16 _ccservicemonths;
        private string _ccempunitno;
        private string _ccemphomeno;
        private string _ccempstreetname;
        private string _ccempcountry;
        private string _ccemppostalcode;
        private float _ccanualincome;
        private bool _ccotherincome;
        private float _ccotherincomeamount;
        private string _ccotherincomesource;
        private Int64 _refceuserid;
        private Int64 _vieweddetailid;
        //Common field
        private bool _ccstatus;
        private DateTime _cccreateddate;
        private DateTime _ccmodifieddate;
        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public CCEmployment()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CCEmpId
        {
            get { return _ccempid; }
            set { _ccempid = value; }
        }

        public Int64 CCPersonnelId
        {
            get { return _ccpersonnelid; }
            set { _ccpersonnelid = value; }
        }

        public Int64 CCARId
        {
            get { return _ccarid; }
            set { _ccarid = value; }
        }

        public string CCEmpOccupation
        {
            get { return _ccoccupation; }
            set { _ccoccupation = value; }
        }

        public string CCIndBusiType
        {
            get { return _ccindbustype; }
            set { _ccindbustype = value; }
        }

        public string CCEmpBusiName
        {
            get { return _ccempbusname; }
            set { _ccempbusname = value; }
        }

        public string CCEmpBusiNature
        {
            get { return _ccempbusnature; }
            set { _ccempbusnature = value; }
        }

        public string CCPosition
        {
            get { return _ccposition; }
            set { _ccposition = value; }
        }
 
        public Int16 CCServiceYears
        {
            get { return _ccserviceyears; }
            set { _ccserviceyears = value; }
        }

        public Int16 CCServiceMonths
        {
            get { return _ccservicemonths; }
            set { _ccservicemonths = value; }
        }

        public string CCEmpUnitNo
        {
            get { return _ccempunitno; }
            set { _ccempunitno = value; }
        }

        public string CCEmpHomeNo
        {
            get { return _ccemphomeno; }
            set { _ccemphomeno = value; }
        }

        public string CCEmpStreetName
        {
            get { return _ccempstreetname; }
            set { _ccempstreetname = value; }
        }

        public string CCEmpCountry
        {
            get { return _ccempcountry; }
            set { _ccempcountry = value; }
        }

        public string CCEmpPostalCode
        {
            get { return _ccemppostalcode; }
            set { _ccemppostalcode = value; }
        }

        public float CCAnualIncome
        {
            get { return _ccanualincome; }
            set { _ccanualincome = value; }
        }

        public bool CCOtherIncome
        {
            get { return _ccotherincome; }
            set { _ccotherincome = value; }
        }

        public float CCOtherIncomeAmt
        {
            get { return _ccotherincomeamount; }
            set { _ccotherincomeamount = value; }
        }

        public string CCOtherIncomeSource
        {
            get { return _ccotherincomesource; }
            set { _ccotherincomesource = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool CCStatus
        {
            get { return _ccstatus; }
            set { _ccstatus = value; }
        }

        public DateTime CCCreatedDate
        {
            get { return _cccreateddate; }
            set { _cccreateddate = value; }
        }

        public DateTime CCModifiedDate
        {
            get { return _ccmodifieddate; }
            set { _ccmodifieddate = value; }
        }

        public string CCInfo1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string CCInfo2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string CCInfo3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string CCInfo4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string CCInfo5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {
            _ccempid = 0;
            _ccpersonnelid = 0;
            _ccarid = 0;
            _ccoccupation = "";
            _ccindbustype = "";
            _ccempbusname = "";
            _ccempbusnature = "";
            _ccposition = "";
            _ccserviceyears = -1;
            _ccservicemonths = -1;
            _ccempunitno = "";
            _ccemphomeno = "";
            _ccempstreetname = "";
            _ccempcountry = "";
            _ccemppostalcode = "";
            _ccanualincome = 0.0f;
            _ccotherincome = false;
            _ccotherincomeamount = 0.0f;
            _ccotherincomesource = "";
            _refceuserid = 0;
            _vieweddetailid = 0;
            //extra field for future extend
            _ccstatus = false;
            _cccreateddate = new DateTime();
            _ccmodifieddate = new DateTime();
            _cccreateddate = CE.Global.General.GetUTCDateTime();
            _ccmodifieddate = CE.Global.General.GetUTCDateTime();
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }

    }
}